package com.usain.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    private Integer id;
    private String tname;
    private Integer tage;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ttime;

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", tname='" + tname + '\'' +
                ", tage=" + tage +
                ", ttime=" + ttime +
                '}';
    }
}
